Protecting Files

Safe Update uses file triggers to protect files. Whenever a program attempts to insert, update, or delete data in a file that Safe Update protects, it checks whether the change is allowed and stops those that are not.

To work with protected files, enter "1" on the command line of the Safe Update Main Menu screen. The Protect Physical Files screen appears.

                            ​  Protect Physical files​                              
                                                                                
 Type options, press Enter.​                                     ​            ​       
 1=Modify​    3=Copy definitions​    4=Remove protection  6=Activate  8=Deactivate​     
                                             ​
 7=Temporary disable​                
                          ​
 Allowed​                                               
 Opt​  File   ​    ​  Library​    ​  Programs​                                              
      AUSYSID   ​  ALEX      ​  ACCOUNT   ​  System id                               ​   
 ​
     DEMOPF    ​  SMZ1DTA   ​  *REGULAR  ​  Demo file  1                            ​   
 ​
     DEMOPF    ​  VICTOR    ​  *REGULAR  ​  DEMO ITEM MASTER FILE                   ​   
 ​
     DEMOPF    ​  YOEL      ​  ACCOUNT   ​  Demo file                               ​   
 ​
     DEMOPF1   ​  ALEX      ​  *REGULAR  ​  Demo file  1                            ​   
 ​
     DEMOPF1   ​  SMZ1DTA   ​  *REGULAR  ​  Demo file  1                            ​   
 ​
     DEMOPF5   ​  YOEL      ​  *REGULAR  ​  Demo file                               ​   
 ​
     DSPJOBLOG ​  YOEL      ​  ACCOUNT   ​  Demo file                               ​   
 ​
     DSPOBJD   ​  YOEL      ​  ACCOUNT   ​  Demo file                               ​   
 ​
     SUDEMO1   ​  YOEL      ​  *REGULAR  ​  FOR TESTING COPY DEFINITIONS            ​   
 ​
     SUDEMO2   ​  YOEL      ​  *REGULAR  ​  FOR TESTING COPY DEFINITIONS            ​   
                                                                  ​
      More...​  
 Logical files are protected by the associated physical files​                    
 Protection is based on DB Triggers.​   ​  =Active.​   ​  =Temporary Disabled.​           
 F3=Exit​   ​  F6=Add New​   ​  F12=Cancel​                                               
                                                                                
                                                                                

For each file, it shows

  • The name and protection status of the file.
    • If file protection is active, the name is on white text on a dark background.
    • If file protection is inactive, the name of the program is in dark text on a white background.
  • The library containing the file.
  • Either
    • the name of a whitelist, as defined on the Work with Program Lists screen (shown in Working with File Lists), or
    • the string "*REGULAR", which indicates that any program that is not in the blacklist defined on the Change File Editors screen (shown in Working with the File Editor Blacklist) may update the file.
  • A text description of the file.

To activate protection for a file, enter "6" in the Opt field for the file.

To deactivate protection for a file, enter "8" in the Opt field for the file.

To remove protection for a file, enter "4" in the Opt field for the file.

To modify protection for a file, enter "1" in the Opt field for the file. TheModify Protection of File screen (shown in Modifying Protection for Files) appears.

To add protection for a file, press the F6-Add New key. The Add Protection of File screen (shown in Adding Protection to Files) appears.